package com.pingan.haofang.searchcloud.monitor.constants;

import com.pingan.haofang.framework.common.functional.lang.control.base.annotation.Value;

/**
 * 预警类型
 *
 * @author EX-ZHOUYONG005
 * @date Oct 19, 2018
 * @since 1.0.0
 */
public enum WarningType {

    INDEX(1, "index导入预警"),

    API(2, "api调用预警"),

    RESOURCE(3, "硬件资源预警");

    public final int value;
    public final String desc;

    private WarningType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Value
    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
